﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Products.Data
{
    /// <summary>
    /// 量度方式类型枚举
    /// </summary>
    public enum MeasureType
    {
        /// <summary>
        /// 平面
        /// </summary>
        Plane = 0,
        /// <summary>
        /// 立体
        /// </summary>
        Solid = 1,
        /// <summary>
        /// 质量
        /// </summary>
        Mass = 2
    }

    /// <summary>
    /// Author： Robin
    /// Create Date: 2011-9-9
    /// 产品尺寸量度方式设置
    /// </summary>
    public class Measure : TransactionConfig
    {
        /// <summary>
        /// 尺寸量多方式图片
        /// </summary>
        public string Photo { get; set; }

        /// <summary>
        /// 量度方式类型
        /// </summary>
        public MeasureType MeasureType { get; set; }

        /// <summary>
        /// 角数量
        /// </summary>
        public short CornerCount { get; set; }

        /// <summary>
        /// 边数量
        /// </summary>
        public short SideCount { get; set; }

        /// <summary>
        /// 用于计算参数值的类型，应实现IMeasureCalculator接口，实现Validate和Calculate方法。
        /// </summary>
        public string ClassType { get; set; }
    }
}
